import request from '@/utils/request'

// 查询电冻结数据（设备维度）列表
export function listElectricityTerminalsFreezeXb(query) {
  return request({
    url: '/datastatistics/electricityTerminalsFreezeXb/list',
    method: 'get',
    params: query
  })
}

// 查询电冻结数据（设备维度）详细
export function getElectricityTerminalsFreezeXb(id) {
  return request({
    url: '/datastatistics/electricityTerminalsFreezeXb/' + id,
    method: 'get'
  })
}

// 新增电冻结数据（设备维度）
export function addElectricityTerminalsFreezeXb(data) {
  return request({
    url: '/datastatistics/electricityTerminalsFreezeXb',
    method: 'post',
    data: data
  })
}

// 修改电冻结数据（设备维度）
export function updateElectricityTerminalsFreezeXb(data) {
  return request({
    url: '/datastatistics/electricityTerminalsFreezeXb',
    method: 'put',
    data: data
  })
}

// 删除电冻结数据（设备维度）
export function delElectricityTerminalsFreezeXb(id) {
  return request({
    url: '/datastatistics/electricityTerminalsFreezeXb/' + id,
    method: 'delete'
  })
}
